public class InterfaceBasedCompositionExample {
    public static void main(String[] args) {
        Callable photoCaller=new PhoneCaller();
        Photographable camera=new Camera();
        MusicPlayable musicPlayer=new MusicPlayer();
        SmartPhone myPhone=new SmartPhone(photoCaller,camera,musicPlayer);
        myPhone.call();
        myPhone.takeAPhoto();
        myPhone.playSomerMusic();

    }
}
